﻿@{
    Bundle("jquery_validate");
}
           
<script type="text/javascript">
    jQuery(document).ready(function () {
        jQuery('@ID("#form")').validate({
            rules: {
                countryID: {
                    digits: true
                },
                regionID: {
                    digits: true
                },
                categoryID: {
                    digits: true
                },
                tagID: {
                    digits: true
                },
                attributeID: {
                    digits: true
                }
            }
        });
    });
</script>
<form id="@ID("form")" action="@Url.Action(Loc.Act("Index"))" method="get">
    <input type="hidden" name="flagMask" value="None" />
    <ul>
        <li>
            <label>@T(Res.Name("SearchTerm"))</label>
        </li>
        <li>
            <input type="text" name="searchTerm" value="@Request.QueryParam("searchTerm")" maxlength="100" />
        </li>
        <li>
            <label>@T(Res.Name("Supplier"))</label>
        </li>
        <li>
            <input type="text" name="supplierID" value="@Request.QueryParam("supplierID")" />
        </li>
        <li>
            <label>@T(Res.Name("Item"))</label>
        </li>
        <li>
            <input type="text" name="itemID" value="@Request.QueryParam("itemID")" />
        </li>
        <li>
            <label>&and;</label>
        </li>
        <li>
            <select name="flagMask" multiple>
                <option value="Active" @(Request.QueryParam("flagMask").Contains("Active") ? "selected" : String.Empty)>@T(Res.In("API").Of("Enum").Of("CatalogTagFlags").Name("Active"))</option>
            </select>
        </li>
    </ul>
    <ul class="bar toolbar">
        <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
    </ul>
</form>
